Specifying names for hosts and targets

Contents|Index|Previous|Next
Specifying names for hosts and targets

The specifications used for hosts and targets in the configure script are based on a three-part naming scheme, but some short predefined aliases are also supported. The full naming scheme encodes three pieces of information in the following pattern: architecture- vendor- os.

For example, use the alias, sun4, as a host argument, or as the value for target in a --target=target option.

The equivalent full name is ‘sparc-sun-sunos4’.

The configure script accompanying GDB does not provide any query facility to list all supported host and target names or aliases. configure calls the Bourne shell script, config.sub, to map abbreviations to full names; you can read the script, if you wish, or you can use it to test your guesses on abbreviations, as in the following example. config.sub is in the GDB source directory.

    % sh config.sub sun4

    sparc-sun-sunos4.1.1

    % sh config.sub sun3

    m68k-sun-sunos4.1.1

    % sh config.sub decstation

    mips-dec-ultrix4.2

    % sh config.sub hp300bsd

    m68k-hp-bsd

    % sh config.sub i386v

    i386-unknown-sysv

    % sh config.sub i786v

    Invalid configuration ‘i786v’: machine ‘i786v’ not recognized

Top|Contents|Index|Previous|Next